﻿using Common.ParameterLocator;
using NUnit.Framework;

namespace SpecFlowTfsConnector.Test
{
    [TestFixture]
    public class TfsSpecFlowConnectorTest : UnitTestInitialization
    {

        [SetUp]
        public new void Initialize()
        {
            base.Initialize();
            ServiceParameter.Instance.Parameter.TfsServerUrl = TestResource.TfsServerUrl;
        }

        [Test]
        public void CanInitializeSpecFlowConnector()
        {
            var specFlowConnector = new TfsSpecFlowConnector();
            var userStories = specFlowConnector.GetUserStories(TestResource.TfsProjectName);
            Assert.That(userStories, Is.Not.Null);
        }
    }
}